import { Inject, Injectable } from '@nestjs/common';
import { I18nContext, I18nService } from 'nestjs-i18n';
import { RedisClientType } from 'redis';

@Injectable()
export class AppService {
  
  // @Inject('REDIS_CLIENT')
  // private redisClient: RedisClientType

  // async getHello() {
  //   const value = await this.redisClient.keys('*')
  //   console.log(value)
  //   return 'Hello World!';
  // }

  @Inject(I18nService)
  private i18n: I18nService

  testI18n() {
    return this.i18n.t('test.hello', {lang: I18nContext.current().lang, args: {name: 'abin'}})
  }

}
